package com.qezhhnjy.demo.redis.controller;

import com.qezhhnjy.demo.redis.bean.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhaoyangfu
 * @date 2021/8/5-13:32
 * 测试jackson转换工具对于时间格式的转换功能
 */
@RestController
@Slf4j
public class JacksonController {

    @PostMapping("/add")
    public User add(@RequestBody User user) {
        log.info("user=>{}", user);
        return user;
    }
}
